/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nxlv2.nomad.businessobjects;

/**
 *
 * @author Xavier
 */
public class DetailCommande {
    private int idAppli, idBase;
    private double quantite;
    
    public DetailCommande() {
    }

    public int getIdAppli() {
        return idAppli;
    }

    public void setIdAppli(int idAppli) {
        this.idAppli = idAppli;
    }

    public int getIdBase() {
        return idBase;
    }

    public void setIdBase(int idBase) {
        this.idBase = idBase;
    }

    public double getQuantite() {
        return quantite;
    }

    public void setQuantite(double quantite) {
        this.quantite = quantite;
    }

    @Override
    public String toString() {
        return "DetailCommande{" + "idAppli=" + idAppli + ", idBase=" + idBase + ", quantite=" + quantite + '}';
    }
    
    public String toJSONString(){
        return "{\"idBase\":\""+ idBase +"\",\"idAppli\":\""+ idAppli +"\",\"quantite\":\""+ quantite +"\"}";
    }
}
